﻿using WeDonekRpc.Helper.Validate;

namespace Basic.OARemoteModel.DataFillIn.Model
{
    public class FillInSet
    {
        /// <summary>
        /// 标题
        /// </summary>
        [NullValidate("oa.fill.in.title.null")]
        [LenValidate("oa.fill.in.title.len", 2, 100)]
        public string Title { get; set; }
        /// <summary>
        /// 填写说明
        /// </summary>
        [LenValidate("oa.fill.in.title.len", 0, 255)]
        public string Show { get; set; }

        /// <summary>
        /// 填充类型
        /// </summary>
        [NullValidate("oa.fill.type.null")]
        [LenValidate("oa.fill.type.len", 2, 10)]
        public string FillType { get; set; }

        /// <summary>
        /// 填充表单ID
        /// </summary>
        [NumValidate("oa.fill.table.id.error", 1)]
        public long TableId { get; set; }

        /// <summary>
        /// 填报开始日期
        /// </summary>
        [TimeValidate("oa.fill.begin.date.error", TimeFormat.日, 0, true)]
        public DateTime BeginDate { get; set; }

        /// <summary>
        /// 填报截止日期
        /// </summary>
        [TimeValidate("oa.fill.end.date.error", TimeFormat.日, 1, true)]
        [TimeComparisonValidate("oa.fill.time.error", "BeginDate", NumComparisonType.大于等于)]
        public DateTime EndDate { get; set; }

    }
}
